package src;
public class Student extends Person {
    public String name;
    public int age;
    public int studentId;
    public Student() {

    }

    public  Student(String name,int age,int studentId) {
        this.name=name;
        this.age=age;
        this.studentId=studentId;
    }   
    @Override
    public void showMessage() {//重写方法
        System.out.printf("学生的信息是：姓名："+name+" 年龄："+age+" 学号："+studentId+"\n");
    }

}


